-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PyYaml to requirements.txt #1174
Conversation
I'm guessing that was a spurious failure? |
Hm, weird, I just created another env and PyYaml was installed automatically... Maybe I missed something on the previous attempt. Ignore this. |
Right now, I'm having to work around like this. |
do we know what error'ed out ? Curious where that dep comes from |
|
|
Ahh LTC dependency. For now you can disable LTC too with -DTORCH_MLIR_ENABLE_LTC=OFF |
Is this something that would go to the dev doc? How do you map the packages from I always assumed you'd put all deps in the file, especially one used by a default build option. |
hmm, this is weird. |
What got me confused is that, when I ran this step:
The deps got pulled and I could build, but I had to clean the When I don't run that step, the PyPaml dep isn't pulled, but I can build straight away without building the But those are different builds and one shouldn't have to depend on the other, nor should I build it twice, just to get the PyYaml dep. |
ah, I see. I think what I do is set the environment variable |
Right, but this shouldn't change the installation of PyYaml before the main build. What is the downside of adding PyYaml to |
It seems that torch doesn't declare yaml as a dependency.
I think we should add PyYAML to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment saying something like "workaround for ..., see discussion in #1174 for more details"?
It seems like they have a build time https://github.com/pytorch/pytorch/blob/beceb8b92f030b19a0ea48ab9ae0def8f554e7f3/requirements.txt#L7 and runtime dep https://github.com/pytorch/pytorch/blob/beceb8b92f030b19a0ea48ab9ae0def8f554e7f3/pyproject.toml#L8 |
So the problem is that we aren't installing their build deps even though we are using their build system. In other words, we don't really depend on the |
|
Building on a fresh environment + virtualenv + in-tree build errors out becayse PyYaml isn't installed. Adding to requirements.txt fixes that. Fixes llvm#1173
Building on a fresh environment + virtualenv + in-tree build errors out
becayse PyYaml isn't installed. Adding to requirements.txt fixes that.
Fixes #1173